package com.nuhu.service;

import com.nuhu.dao.MaintainRecordDao;
import com.nuhu.pojo.RepairRecord;
import com.nuhu.service.impl.MaintainRecordServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MaintainRecordService implements MaintainRecordServiceImpl {
    @Autowired
    private MaintainRecordDao maintainRecordDao;

    @Override
    public void maintainInsert(RepairRecord repairRecord) {
        maintainRecordDao.insertMaintainRecord(repairRecord);
    }

    @Override
    public void maintainSetIssueResolved(RepairRecord repairRecord) {
        maintainRecordDao.maintainSetIssueResolved(repairRecord);
    }

    @Override
    public void maintainSetIsSigned(RepairRecord repairRecord) {
        maintainRecordDao.maintainSetIsSigned(repairRecord);
    }

    @Override
    public RepairRecord maintainGetIsSigned() {
        return maintainRecordDao.maintainGetIsSigned();
    }

    @Override
    public RepairRecord maintainSelect() {
        return maintainRecordDao.selectMaintainRecord();
    }
}
